package com.xfcy.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (DictData)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@TableName("b_dict_data")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DictData implements Serializable {

    private static final long serialVersionUID=1L;
    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //字典类型id
    @ApiModelProperty(value = "字典类型id")
    private Long dictId;
    //字典标签
    @ApiModelProperty(value = "字典标签")
    private String label;
    //字典键值
    @ApiModelProperty(value = "字典键值")
    private String value;
    //回显样式
    @ApiModelProperty(value = "回显样式")
    private String style;
    //是否默认（1是 0否）
    @ApiModelProperty(value = "是否默认（1是 0否）")
    private String isDefault;
    //排序
    @ApiModelProperty(value = "排序")
    private Integer sort;
    //是否发布(1:是，0:否)
    @ApiModelProperty(value = "是否发布(1:是，0:否)")
    private String isPublish;
    //备注
    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    private Dict dict;
}

